FROM python:3.6-alpine

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/'  \
/etc/apk/repositories \
 && apk add --no-cache --virtual .build-deps  gcc libc-dev make openssl-dev \
 linux-headers curl libffi-dev libxml2-dev libxslt-dev g++ tesseract-ocr-dev

COPY pip.conf /root/.pip/pip.conf

RUN pip install scrapy browsercookie requests tesseract-ocr